<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>普通转诊</title>
    <link rel="stylesheet" href="plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="css/generalReferral.css">
    <link rel="stylesheet" href="css/common.css">
</head>
<body>
<div class="container-fluid my-container-fluid">
    <!-- 查询面板 -->
    <div class="panel panel-default" id="search">
        <div class="panel-heading ht50">
            <h3 class="panel-title pull-left mt5"><i class="glyphicon glyphicon-search"></i> 查询面板</h3>
            <form class="form-inline pull-right">
                <div class="form-group ">
                    <label>转诊时间：</label>
                    <input type="text" name="rollOutTime_begin" class="form-control input-sm" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="请选择开始时间">
                    -
                    <input type="text" name="rollOutTime_end" class="form-control input-sm" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="请选择结束时间">
                </div>
            </form>
        </div>
        <div class="panel-body">
            <form class="form-inline mb20 flex jscenter alcenter">
                <div class="form-group">
                    <label>转出科室：</label>
                    <input type="text" name="rollOutDep_like" class="form-control" placeholder="请输入">
                </div>
                <div class="form-group">
                    <label>患者姓名：</label>
                    <input type="text" name="patientName_like" class="form-control" placeholder="请输入">
                </div>
                <div class="form-group">
                    <label>转诊医师：</label>
                    <input type="text" name="rollOutDoctor_like" class="form-control" placeholder="请输入">
                </div>
            </form>
            <div class="row">
                <div class="col-md-6"><a href="javascript: search();" type="button" class="btn btn-warning btn-sm pull-right"><i class="glyphicon glyphicon-search"></i> 查询</a></div>
                <div class="col-md-6"><a href="javascript: searchReset();" type="button" class="btn btn-default btn-sm"><i class="glyphicon glyphicon-repeat"></i> 重置</a></div>
            </div>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <button type="button" class="btn btn-success btn-sm addBtn"><i class="glyphicon glyphicon-plus"></i> 添加</button>
            <button type="button" class="btn btn-success btn-sm exportBtn"><i class="glyphicon glyphicon-download-alt"></i> 导出</button>
        </div>
        <div class="panel-body">
            <table class="table table-bordered text-center table-condensed">
                <thead>
                <tr class="success text-success">
                    <th width="5%" class="text-center verticalmiddle">序号</th>
                    <th width="10%" class="text-center verticalmiddle">日期</th>
                    <th width="8%" class="text-center verticalmiddle">姓名</th>
                    <th width="6%" class="text-center verticalmiddle">性别</th>
                    <th width="5%" class="text-center verticalmiddle">年龄</th>
                    <th width="22%" class="text-center verticalmiddle">临床诊断</th>
                    <th width="8%" class="text-center verticalmiddle">转出科室</th>
                    <th width="8%" class="text-center verticalmiddle">转入医院</th>
                    <th width="8%" class="text-center verticalmiddle">会诊医师</th>
                    <th width="8%" class="text-center verticalmiddle">转诊医师</th>
                    <th width="12%" class="text-center verticalmiddle">操作</th>
                </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
            <div class="paging">
                <ul>
                    <li>共<span id="totalCountHtml"></span>条记录，当前显示<span id="pageInforHtml"></span>页，转到</li>
                    <li><input type="text" id="pageInput"></li>
                    <li>页</li>
                    <li><a style="cursor:pointer;" id="pageInputSubmit">确定</a></li>
                </ul>
                <ul>
                    <li><a style="cursor:pointer;" name="first_enable" id="first_a">首页</a></li>
                    <li><a style="cursor:pointer;" name="prev_enable" id="prev_a">上一页</a></li>
                    <li><a style="cursor:pointer;" name="next_enable" id="next_a">下一页</a></li>
                    <li><a style="cursor:pointer;" name="last_enable" id="last_a">末页</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>
<!-- 删除弹窗 -->
<div class="modal fade delWindow" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title"><i class="glyphicon glyphicon-list-alt"></i> 删除</h4>
            </div>
            <div class="modal-body">
                <input type="text" id="confirmDeleteId" hidden>
                <h5>确定要删除吗？</h5>
            </div>
            <div class="modal-footer">
                <a href="javascript: confirmDelete();">
                    <button type="button" class="btn btn-primary btn-sm">确定</button>
                </a>
                <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<!-- 添加窗口 -->
<div class="modal fade addWindow" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title"><i class="glyphicon glyphicon-list-alt"></i> 添加信息</h4>
            </div>
            <div class="modal-body">

                <form class="form-inline add" style="margin-bottom:10px;">
                    <div class="form-group">
                        <label>患者姓名：</label>
                        <input type="text" name="patientName" class="form-control input-sm" placeholder="请输入">
                    </div>
                    <div class="form-group" style="margin-right:57px;">
                        <label>患者性别：</label>
                        <input type="radio" name="patientSex" value="1" checked> 男
                        <input type="radio" name="patientSex" value="2" style="margin-left:25px;"> 女
                    </div>

                </form>


                <form class="form-inline add" style="margin-bottom:10px;">
                    <div class="form-group">
                        <label>患者年龄：</label>
                        <input type="text" name="patientAge" class="form-control input-sm" placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label>患者联系方式：</label>
                        <input type="text" name="patientPhone" class="form-control input-sm" placeholder="请输入">
                    </div>
                </form>

                <form class="form-inline add" style="margin-bottom:10px;">
                    <div class="form-group">
                        <label>患者身份证号：</label>
                        <input type="text" name="patientSfzh" class="form-control input-sm" placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label>拟就诊医院：</label>
                        <input type="text" name="rollOutHosp" class="form-control input-sm" placeholder="请输入">
                    </div>
                </form>

                <form class="form-inline add" style="margin-bottom:10px;">

                    <div class="form-group">
                        <label>转出科室：</label>
                        <input type="text" name="rollOutDep" class="form-control input-sm" placeholder="请输入">
                    </div>

                    <div class="form-group" style="margin-right:69px;">
                        <label>转出方式：</label>
                        <input type="radio" name="rollOutType" value="1" checked> 120送
                        <input type="radio" name="rollOutType" value="2" style="margin-left:25px;"> 120接
                        <input type="radio" name="rollOutType" value="3" style="margin-left:25px;"> 自行转院
                    </div>

                </form>

                <form class="form-inline add" style="margin-bottom:10px;">
                    <div class="form-group">
                        <label>转诊医师：</label>
                        <input type="text" name="rollOutDoctor" class="form-control input-sm" placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label>转诊时间：</label>
                        <input name="rollOutTime" type="text" class="form-control input-sm selDate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="请选择">
                    </div>
                </form>

                <form class="form-inline add" style="margin-bottom:10px;">
                    <div class="form-group">
                        <label>会诊医师：</label>
                        <textarea name="consultationDoctors" class="form-control" rows="2" placeholder="请输入" style="width: 680px;"></textarea>
                    </div>
                </form>

                <form class="form-inline add" style="margin-bottom:10px;">
                    <div class="form-group">
                        <label>临床诊断：</label>
                        <textarea name="diagnosis" class="form-control" rows="2" placeholder="请输入" style="width: 680px;"></textarea>
                    </div>
                </form>

                <form class="form-inline add" style="margin-bottom:10px;">
                    <div class="form-group">
                        <label>备注：</label>
                        <textarea name="remarks" class="form-control" rows="2" placeholder="请输入" style="width: 680px;"></textarea>
                    </div>
                </form>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">关闭</button>
                <a href="javascript: add();"><button type="button" class="btn btn-primary btn-sm">提交</button></a>
            </div>
        </div>
    </div>
</div>
<!-- 编辑窗口 -->
<div class="modal fade editWindow" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title"><i class="glyphicon glyphicon-list-alt"></i> 添加信息</h4>
            </div>
            <div class="modal-body">

                <form class="form-inline edit" style="margin-bottom:10px;">
                    <input type="text" class="edit" name="id" hidden>
                    <div class="form-group">
                        <label>患者姓名：</label>
                        <input type="text" name="patientName" class="form-control input-sm edit" placeholder="请输入">
                    </div>
                    <div class="form-group" style="margin-right:57px;">
                        <label>患者性别：</label>
                        <input class="edit" type="radio" name="patientSex" value="1" checked> 男
                        <input class="edit" type="radio" name="patientSex" value="2" style="margin-left:25px;"> 女
                    </div>
                </form>

                <form class="form-inline edit" style="margin-bottom:10px;">
                    <div class="form-group">
                        <label>患者年龄：</label>
                        <input type="text" name="patientAge" class="form-control input-sm edit" placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label>患者联系方式：</label>
                        <input type="text" name="patientPhone" class="form-control input-sm edit" placeholder="请输入">
                    </div>
                </form>

                <form class="form-inline edit" style="margin-bottom:10px;">
                    <div class="form-group">
                        <label>患者身份证号：</label>
                        <input type="text" name="patientSfzh" class="form-control input-sm edit" placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label>拟就诊医院：</label>
                        <input type="text" name="rollOutHosp" class="form-control input-sm edit" placeholder="请输入">
                    </div>
                </form>


                <form class="form-inline edit" style="margin-bottom:10px;">

                    <div class="form-group">
                        <label>转出科室：</label>
                        <input type="text" name="rollOutDep" class="form-control input-sm edit" placeholder="请输入">
                    </div>

                    <div class="form-group" style="margin-right:69px;">
                        <label>转出方式：</label>
                        <input class="edit" type="radio" name="rollOutType" value="1" checked> 120送
                        <input class="edit" type="radio" name="rollOutType" value="2" style="margin-left:25px;"> 120接
                        <input class="edit" type="radio" name="rollOutType" value="3" style="margin-left:25px;"> 自行转院
                    </div>

                </form>

                <form class="form-inline edit" style="margin-bottom:10px;">
                    <div class="form-group">
                        <label>转诊医师：</label>
                        <input type="text" name="rollOutDoctor" class="form-control input-sm edit" placeholder="请输入">
                    </div>
                    <div class="form-group">
                        <label>转诊时间：</label>
                        <input name="rollOutTime" type="text" class="form-control input-sm selDate edit" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="请选择">
                    </div>
                </form>

                <form class="form-inline edit" style="margin-bottom:10px;">
                    <div class="form-group">
                        <label>会诊医师：</label>
                        <textarea name="consultationDoctors" class="form-control edit" rows="2" placeholder="请输入" style="width: 680px;"></textarea>
                    </div>
                </form>

                <form class="form-inline edit" style="margin-bottom:10px;">
                    <div class="form-group">
                        <label>临床诊断：</label>
                        <textarea name="diagnosis" class="form-control edit" rows="2" placeholder="请输入" style="width: 680px;"></textarea>
                    </div>
                </form>

                <form class="form-inline edit" style="margin-bottom:10px;">
                    <div class="form-group">
                        <label>备注：</label>
                        <textarea name="remarks" class="form-control edit" rows="2" placeholder="请输入" style="width: 680px;"></textarea>
                    </div>
                </form>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">关闭</button>
                <a href="javascript: editInfo();"><button type="button" class="btn btn-primary btn-sm">提交</button></a>
            </div>
        </div>
    </div>
</div>
</body>
<script src="lib/jquery-1.12.4.min.js"></script>
<script src="plugins/datePicker/WdatePicker.js"></script>
<script src="plugins/bootstrap/js/bootstrap.js"></script>
<script src="plugins/layer/layer.js"></script>
<script src="plugins/jsrender/jsrender.js"></script>
<script id="info_tmpl" type="text/x-jsrender">
    <tr>
        <td>{{: #index + 1 }}</td>
        <td>{{: rollOutTime }}</td>
        <td>{{: patientName }}</td>
        <td>{{: patientSex_dictText }}</td>
        <td>{{: patientAge }}</td>
        <td>{{: diagnosis }}</td>
        <td>{{: rollOutDep }}</td>
        <td>{{: rollOutHosp }}</td>
        <td>{{: consultationDoctors }}</td>
        <td>{{: rollOutDoctor }}</td>
        <td>
            <a href="javascript: edit('{{: id }}');" class="btn btn-warning btn-xs">编辑</a>
            <a href="javascript: deleteInfo('{{: id }}');" class="btn btn-danger btn-xs">删除</a>
        </td>
    </tr>
</script>
<script src="js/generalInsurance.js"></script>
</html>